package com.lemo.mybatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lemo.mybatis.dao.LemoMapper;
import com.lemo.mybatis.model.Lemo;
import com.lemo.mybatis.service.LemoService;

@Service
@Transactional
public class LemoServiceImpl implements LemoService {

	@Autowired
	private LemoMapper lemoMapper;

	public int deleteByPrimaryKey(Long lid) {
		return lemoMapper.deleteByPrimaryKey(lid);
	}

	public int insert(Lemo record) {
		return lemoMapper.insert(record);
	}

	public int insertSelective(Lemo record) {
		return lemoMapper.insertSelective(record);
	}

	public Lemo selectByPrimaryKey(Long lid) {
		return lemoMapper.selectByPrimaryKey(lid);
	}

	public int updateByPrimaryKeySelective(Lemo record) {
		return lemoMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKeyWithBLOBs(Lemo record) {
		return lemoMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	public int updateByPrimaryKey(Lemo record) {
		return lemoMapper.updateByPrimaryKey(record);
	}

}
